package com.azu.bitmapworker.core;

import android.content.Context;
import android.graphics.Bitmap;

import java.io.File;
import java.io.FileDescriptor;
import java.io.InputStream;

/**
 * 如何处理图片
 */
public interface BitmapProcessor {

	Result process(Context context, FileDescriptor fd, BitmapDisplayConfig config, String exifPath, BitmapCache cache);

    public static class Result{
        public Bitmap rawBitmap;
        public Bitmap processedBitmap;
		public InputStream raw;
		public File tempFile;

        public Result(Bitmap rawBitmap, Bitmap processedBitmap){
            this.rawBitmap = rawBitmap;
            this.processedBitmap = processedBitmap;
        }

		public Result(InputStream raw, File rawFile){
			this.raw = raw;
			this.tempFile = rawFile;
		}

	}
}
